#pragma once

#include "curve.h"
#include <vector>

namespace g2 {

class polyline : public curve, public std::vector<vector> {
public:
	polyline();
	polyline(const std::vector<g2::vector> &);
public:
	bool on(const g2::vector &, double h) const;
public:
	virtual polyline flatten(double h) const;
	virtual g2::vector center() const;
	virtual box bounds() const;
	virtual void translate(const g2::vector &);
	virtual void rotate(const g2::vector & center, double angle);
};

} // g2
